CC = gcc
CFLAGS = -Wall -O0 -g
SRC = $(shell ls  *.c)

OBJ = $(patsubst %.c, %.o, $(SRC))

APP = go

$(APP): $(OBJ)
	$(CC) $^ -o $@ -lsqlite3

%.o: %.c
	$(CC) $(CFLAGS) $< -c -o $@ -lsqlite3


clean:
	$(RM)  *.o $(APP)

.PHONY: clean   #伪目标,强制更新